#!bin/bash
#

user=root
password=WWW.1.com

num=$(mysql -u${user} -p${password} -e "show processlist" 2> /dev/null | sed '1d' | wc -l)

if [ "$num" -gt 10 ];then
echo "警告"
else 
echo "正常"
fi
